import RequestModel from './request/request'

class UserModel extends RequestModel {
    constructor() {
        super()
    }

    request(url, method, data) {
        if (method == 'POST') {
            return this.postRequest({
                url: url,
                data: data
            })
        } else {
            return this.getRequest({
                url: url,
                data: data
            })
        }
    }
}

export default UserModel